home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / makefiles / Makerules.allsrc < prev    next >
Text File  |  1993-11-16  |  3KB  |  98 lines

  1. depend:
  2.     @if [ -d O.${MACHTYPE} ] ; then                    \
  3.       CC=${CC} ${MKDEP} -f O.${MACHTYPE}/${MKDEPFILE}        \
  4.         ${MKDEPFLAGS} -P ../ ${CFLAGS} ${SRCS} ${COMMON_SRCS} ;    \
  5.     fi
  6.     @${DO_DIRS_THIS_MACH_NO_OBJ}
  7.  
  8. installh:
  9.     @(incs="${INCS}" ; i=; \
  10.           for h in $$incs ; do \
  11.         cmp -s $$h ${GEOM}/include/$$h || i="$$i $$h" ; \
  12.       done; \
  13.       test -n "$$i" && ${INSTALL} -O -v -m 664 -F ${GEOM}/include $$i || :)
  14.     @${DO_DIRS_NO_OBJ}
  15.  
  16. rm_libs rm_depend:
  17.     @${DO_DIRS}
  18.  
  19. OTHER_DISTFILES_CMD = \
  20.   ( hfiles=`/bin/ls | grep '.*\.h$$' || : ` ; \
  21.     files=`echo ${SRCS} ${MANS} ${DOCS} ${MMAPKGS} ${SCRIPTS} $$hfiles` ; \
  22.     if [ "$$files" != "" ] ; then echo $$files ; fi )
  23.  
  24. COPYRIGHT=${GEOM}/doc/misc/copyright
  25.  
  26. copyright:
  27.     @( files=`/bin/ls | grep '.*\.[ch]$$' || : ` ; \
  28.        for file in $$files ; do \
  29.          if grep -s 'Copyright (c) 1992 The Geometry Center' $$file ; then \
  30.            echo $$file is already copyrighted ; \
  31.            else \
  32.            if co -l -f $$file ; then \
  33.              cat ${COPYRIGHT} $$file > $$file.new ; \
  34.              mv $$file $$file.old ; \
  35.              mv $$file.new $$file ; \
  36.              ci -u -f -m"added copyright notice" $$file ; \
  37.            else \
  38.              echo ERROR could not co $$file ; \
  39.            fi ; \
  40.          fi ; \
  41.        done )
  42.     @${DO_DIRS_NO_OBJ}
  43.  
  44. # this target can be customized to to various editing on src files:
  45.  
  46. CREL = ${GEOM}/tools/cr.el
  47.  
  48. srcedit:
  49.     @( files=`/bin/ls | grep '.*\.[ch]$$' || : ` ; \
  50.        for file in $$files ; do \
  51.          if grep -s '^/\* Authors: ' $$file ; then \
  52.            if co -l -f $$file ; then \
  53.              emacs -batch $$file -l ${CREL} ; \
  54.              ci -u -f -m"moved copyrights around a bit" $$file ; \
  55.            else \
  56.              echo ERROR could not co $$file ; \
  57.            fi ; \
  58.          fi ; \
  59.        done )
  60.        
  61.     @${DO_DIRS_NO_OBJ}
  62.  
  63. # Copy ${MANDIR} to a shell variable in case it includes trailing blanks.
  64.     
  65. formatman:
  66.     @mans="${MANS}"; mandir=${MANDIR}; \
  67.     if type nroff 2>&1 | grep 'nroff is ' >&-; then \
  68.         for f in $$mans ; do \
  69.         cdir=$$mandir/cat`expr "$$f" : ".*\(.\)"` ; \
  70.         ${GEOM}/tools/insuredir $$cdir; \
  71.         rm -f $$cdir/$$f ; \
  72.         echo "nroff -man $$f | col -b > $$cdir/$$f" ; \
  73.         nroff -man $$f | col -b > $$cdir/$$f; \
  74.         rm -f ${GEOM}/doc/$$f ; \
  75.         /bin/cp $$cdir/$$f ${GEOM}/doc; \
  76.         done; \
  77.     fi
  78.  
  79. installman:
  80.     @mans="${MANS}"; mandir=${MANDIR}; \
  81.     for f in $$mans ; do \
  82.         mdir=$$mandir/man`expr "$$f" : ".*\(.\)"` ; \
  83.       ${INSTALL} -O -v -m 664 -F $$mdir $$f || : ; \
  84.     done;
  85.  
  86. installmma:    ${MMAPKGS}
  87.     @if [ "${MMAPKGS}" ] ; then \
  88.       ${INSTALL} -m 664 -O -v -F ${MMAPACKAGEDIR} ${MMAPKGS} \
  89.     ; fi    
  90.  
  91. installdoc:    ${DOCS}
  92.     @if [ "${DOCS}" ] ; then \
  93.       ${INSTALL} -m 664 -O -v -F ${GEOM}/doc ${DOCS} \
  94.     ; fi
  95.  
  96. include ${GEOM}/makefiles/Makerules.clean
  97. include ${GEOM}/makefiles/Makerules.common
  98.